const mysql = require("mysql2");

const connection = mysql.createConnection({
  host: "localhost",
  port: "3306",
  user: "root",
  password: "admin123",
  database:'music_db'
});

// 执行sql语句

const statement = `SELECT * FROM students`;

connection.query(statement, (err, values, files) => {
  console.log(values);
});
